/**
 * 关爱计划手工设置
 *
 * @Author: 殷世杰
 * @Date: 2019/09/19
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 查询关爱计划列表
export const getCareTaskList = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customercare/carePlanManual`, { params });
// 查询关爱计划明细
export const getCateTaskById = carePlanId => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customercare/carePlanManual/${carePlanId}`);
// 新增手动设置的关爱计划
export const saveCareTask = params => axios.post(`${SERVER.CYXDMS_CUSTOMERCARE}/customercare/carePlanManual/modifyManualCarePlan`, params);
// 查询手动关爱对象范围
export const queryCareTargetList = params => axios.get(`${SERVER.CYXDMS_CUSTOMERCARE}/customercare/carePlanManual/queryCareTargetList`, {params});
// 发布手动关爱计划
export const releaseManualCarePlan = params => axios.put(`${SERVER.CYXDMS_CUSTOMERCARE}/customercare/carePlanManual/releaseManualCarePlan`, params);
// 停用手动关爱计划
export const disabledManualCarePlan = params => axios.put(`${SERVER.CYXDMS_CUSTOMERCARE}/customercare/carePlanManual/disabledManualCarePlan`, params);
// 删除手动关爱计划
export const deleteManualCarePlan = params => axios.put(`${SERVER.CYXDMS_CUSTOMERCARE}/customercare/carePlanManual/deleteManualCarePlan`, params);
